package com.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.turbine.EnableTurbine;
import org.springframework.context.ConfigurableApplicationContext;

/**
 *
 * turbine 找的是应用的eureka.instance.home-page-url-path = /abc  + hystrix.stream
 *
 *
 * #利用日志信息排查turbine启动后不能监控的问题  日志如下：
 *
  2020-03-02 18:43:11.921  INFO 17200 --- [        Timer-0] c.n.t.monitor.instance.InstanceMonitor   :
  Url for host: http://10.0.68.72:8082/ribbon/actuator/hystrix.stream SUNXJ-MICROSERVICE-CONSUMER-MOVIE-RIBBON-WITHHYSTRIX2
 *
 *
 *
 * 如果被监控的实例配置了eureka.instance.home-page-url-path，，则turbin需要配置instanceUrlSuffix
 */
@SpringBootApplication
@EnableTurbine
public class TurbineApp2 {
	
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(TurbineApp2.class);
		ConfigurableApplicationContext context = application.run(args);
		
		
		System.out.println("============end=======================");
	}

}
